#include "CaseConnectionConfigFactory.hpp"
#include "DbStorage/SqlSvrConnectionConfig.hpp"
#include <cassert>

Storage::ConnectionConfig* CaseConnectionConfigFactory::createConfig( const std::string& typeName, const std::string& connName )
{
	if( typeName == DbStorage::SqlSvrConnectionConfig::TYPENAME)
	{
		return new DbStorage::SqlSvrConnectionConfig( connName);
	}
	assert( false);
	return NULL;
}

// ---------------------------------------------------------------------------------------------------------------------

void CaseConnectionConfigFactory::registeredConnectionTypes( std::list< std::string>& typeList )
{
	typeList.push_back( DbStorage::SqlSvrConnectionConfig::TYPENAME);
}